﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 移库表
    /// </summary>
    public  class Transfers
    {
        /// <summary>
        /// 移库表-主键
        /// </summary>
   
        [SugarColumn(IsPrimaryKey = true, ColumnName = "TransferID")]
        [MaxLength(50)]
        public string TransferID { get; set; }
        /// <summary>
        /// 移库单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string TransfersCode {  get; set; }
        /// <summary>
        /// 移库单类型
        /// </summary>
        public TransferType Type { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Code {  get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [MaxLength(255)]
        public string Remarks { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 原仓库
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SourceWarehouse { get; set; }

        /// <summary>
        /// 新仓库
        /// </summary>
        /// 
        [MaxLength(50)]
        public string DestinationWarehouse { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public TransferStatus Status { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Creator { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime AuditTime { get; set; }

        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }


    }
}
